efficient way to learn math for machine learning